#include "UiRadioPageOne.h"



CUiRadioPageOne::CUiRadioPageOne()
{

}

CUiRadioPageOne::~CUiRadioPageOne()
{
}

void CUiRadioPageOne::PaintWinEx(HDC hdcMem, unsigned char * &hdc, RECT* prcWin, RECT* prcUpdate)
{

}
BOOL CUiRadioPageOne::InitUiWin(void)
{
/*****************m_BtnUiMidbody*************************************/	
	
	RECT rtBtnPresetChannel[MAX_PRESET_CHANNEL] = 
	{
		400, 95, 577, 160,
		400, 160, 577, 225,
		400, 225, 577, 290,
		600, 95, 777, 160,
		600, 160, 777, 225,
		600, 225, 777, 290,
	};
	m_ImgPresetN.LoadImage(MzGetInstanceHandle(), 1054);
	m_ImgPresetP.LoadImage(MzGetInstanceHandle(), 1055);
	for(UINT i = PRESET_CHANNEL_ONE; i < MAX_PRESET_CHANNEL; i++)
	{
		m_BtnPreset[i].SetPos(rtBtnPresetChannel[i].left, rtBtnPresetChannel[i].top, 
											rtBtnPresetChannel[i].right-rtBtnPresetChannel[i].left, rtBtnPresetChannel[i].bottom-rtBtnPresetChannel[i].top);
		m_BtnPreset[i].SetID(1050+i);
		m_BtnPreset[i].SetNormalImage(m_ImgPresetN);
		m_BtnPreset[i].SetPressedImage(m_ImgPresetP);

		AddChild(&m_BtnPreset[i]);
	}

/*****************m_BtnUiMidbody*************************************/	
	return TRUE;
}